package com.example.myapplication3.base;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.myapplication3.utils.LogUtils;

public class LifeCycleActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        LogUtils.i("BaseActivity", getClass().getSimpleName() + " onRestart: ");
    }

    @Override
    protected void onStart() {
        super.onStart();
        LogUtils.i("BaseActivity", getClass().getSimpleName() + " onStart: ");
    }

    @Override
    protected void onStop() {
        super.onStop();
        LogUtils.i("BaseActivity", getClass().getSimpleName() + " onStop: ");

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        LogUtils.i("BaseActivity", getClass().getSimpleName() + " onDestroy: ");
    }

    @Override
    protected void onPause() {
        super.onPause();
        LogUtils.i("BaseActivity", getClass().getSimpleName() + " onPause: ");
    }

    @Override
    protected void onResume() {
        super.onResume();
        LogUtils.i("BaseActivity", getClass().getSimpleName() + " onResume: ");
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        LogUtils.i("BaseActivity", getClass().getSimpleName() + " onRestart: ");
    }
}
